<html>
<head><meta charset="utf-8"><title>Reorganization · project-portable-simd · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/index.html">project-portable-simd</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html">Reorganization</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225262667"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/225262667" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Caleb Zulawski <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#225262667">(Feb 05 2021 at 05:19)</a>:</h4>
<p>Right now I find it somewhat difficult to find where things are, and making broad changes sometimes requires modifying tons of files.  I'm curious how everyone feels about siloing functionality a bit:</p>
<ul>
<li>one module defines vectors</li>
<li>one module implements conversions (this can be further broken down--array conversions, std::arch conversions, casts, etc)</li>
<li>one module implements std::ops, one for float ops, one for int ops</li>
<li>etc<br>
The main difference, I think, would be that <code>macros.rs</code> gets split up a bit, and the various <code>vector_*.rs</code> files get rearranged</li>
</ul>



<a name="225262769"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/225262769" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Caleb Zulawski <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#225262769">(Feb 05 2021 at 05:21)</a>:</h4>
<p>I guess my intention is that the file paths would indicate functionality a bit more. <code>type_definitions.rs</code>, <code>convert/arch.rs</code>, <code>convert/array.rs</code>, <code>math/float.rs</code>, etc</p>



<a name="225263363"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/225263363" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#225263363">(Feb 05 2021 at 05:33)</a>:</h4>
<p>yeah, this is why I pushed most of my mods into <code>permute.rs</code></p>



<a name="225263421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/225263421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Caleb Zulawski <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#225263421">(Feb 05 2021 at 05:34)</a>:</h4>
<p>Yeah, like that</p>



<a name="225303248"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/225303248" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#225303248">(Feb 05 2021 at 14:17)</a>:</h4>
<p>sounds very good</p>



<a name="225343926"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/225343926" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#225343926">(Feb 05 2021 at 19:20)</a>:</h4>
<p>Yeah, I'm in favor of it obviously, lol.</p>
<p>I have a lot less need for a <code>vector_f32.rs</code> and a <code>vector_f64.rs</code> with a <code>macros.rs</code> than a <code>vector_floats.rs</code> with <code>macros.rs</code> divided by actual usage.</p>



<a name="226595444"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/226595444" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#226595444">(Feb 16 2021 at 23:44)</a>:</h4>
<p>only complaint: if I want to refactor the float code specifically, I can't just aim myself at core_simd/floats<br>
however, I don't think our API will "work" like that necessarily, and it is more likely to work on the organizational principle you describe. If we need to refactor it down the line, we can still do that anyways, though.</p>



<a name="226774937"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Reorganization/near/226774937" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Reorganization.html#226774937">(Feb 18 2021 at 07:48)</a>:</h4>
<p>pushed a bunch of code around. <a href="https://github.com/rust-lang/stdsimd/pull/77">https://github.com/rust-lang/stdsimd/pull/77</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>